﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using OgilvyOne.UKNow.Model;

namespace OgilvyOne.UKNow.Mobile.Model
{
    [Serializable]
    [DataContract]
    public class NewsInfo
    {
        [DataMember(Name = "news_id")]
        public int? ID { get; set; }

        [DataMember(Name = "news_title")]
        public string Title { get; set; }

        [DataMember(Name = "news_text")]
        public string Content { get; set; }

        //[DataMember(Name = "news_image")]
        //public string ImageName { get; set; }

        [DataMember(Name = "news_url")]
        public string HtmlFileName { get; set; }

        [DataMember(Name = "created_at")]
        public string InsertedTime { get; set; }

        /// <summary>
        /// 新闻的手机图片集合
        /// </summary>
        List<PhoneImage> _images = new List<PhoneImage>();
        [DataMember(Name = "images")]
        public List<PhoneImage> Images
        {
            get { return _images; }
            set { _images = value; }
        }
    }
}
